package com.arsn.myf.resource.entity;

import com.arsn.myf.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 附件对象
 *
 * @author zhongrj
 * @date 2022-12-12 20:40:38
 */
@Data
@TableName("sys_attach")
@ApiModel(value = "Attach对象", description = "Attach对象")
public class Attach extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    * 主键
    */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
    * 附件地址
    */
    @ApiModelProperty(value = "附件地址")
    private String link;

    /**
    * 附件域名
    */
    @ApiModelProperty(value = "附件域名")
    private String domain;

    /**
    * 附件名称
    */
    @ApiModelProperty(value = "附件名称")
    private String name;

    /**
    * 附件原名
    */
    @ApiModelProperty(value = "附件原名")
    private String originalName;

    /**
    * 附件拓展名
    */
    @ApiModelProperty(value = "附件拓展名")
    private String extension;

    /**
    * 附件大小
    */
    @ApiModelProperty(value = "附件大小")
    private Long attachSize;

    /**
    * 状态
    */
    @ApiModelProperty(value = "状态")
    private Integer status;

    /**
    * 是否已删除
    */
    @ApiModelProperty(value = "是否已删除")
    @TableLogic
    private Integer isDeleted;

}
